package com.ibeeking.found.upms.g.rest.service;

import com.ibeeking.found.common.entity.CurrentUser;
import com.ibeeking.found.upms.service.common.bo.GmcUserRoleBO;
import com.ibeeking.found.upms.service.common.param.RoleUserParam;
import com.ibeeking.found.upms.service.common.param.UserRoleParam;

import java.util.List;

/**
 * @project: IGmcUserRoleService
 * @description: 用户角色接口
 * @Author ibeeking
 * @create: 2020-12-05 13:29:49
 **/
public interface IGmcUserRoleService {

    /**
     * 查询用户角色关系通过用户ID
     * @param userId
     * @return
     */
    List<GmcUserRoleBO> queryUserRoleByUserId(Long userId);

    /**
     * 查询用户角色关系通过角色ID
     * @param roleId
     * @return
     */
    List<GmcUserRoleBO> queryUserRoleByRoleId(Long roleId);

    /**
     * 通过用户ID修改用户角色关系
     * @param currentUser
     * @param userRoleParam
     * @return
     */
    Boolean modifyUserRoleByUserId(CurrentUser currentUser, UserRoleParam userRoleParam);

    /**
     * 通过角色ID修改用户角色关系
     * @param currentUser
     * @param roleUserParam
     * @return
     */
    Boolean modifyUserRoleByRoleId(CurrentUser currentUser, RoleUserParam roleUserParam);
}
